# MakeBy: LiuBoyuan
from rest_framework.response import Response
from rest_framework.views import APIView

from framework.SerableQueen import SerableQueen


class User(APIView):
    def get(self, request):
        """
        获取用户注册的势力
        :param request:
        :return:
        """
        user_manager = SerableQueen().get_UserManger()
        return Response(
            user_manager.get_power_hasuser()
        )
